package org.feifei.hrm.controller;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @RequestMapping("/loginSuccess")
    public String loginSuccess(){
        return "登陆成功";
    }

    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        System.out.println(encoder.matches("1", "$2a$10$vxO9RsTNAB.fy9KKJju8AOPtu/wgzxabaE7m7nSxcK1b6tFLWoaAe"));
        System.out.println(encoder.matches("123456", "$2a$10$d9VIwZH14/zYmvblKHmguuUySKt/SSkvD61fWjPzTvSHMBSa.RZ1y"));

    }
}